import instance from "@/axios";
import { data } from "autoprefixer";

export const getCategoryPageList = (data) => {
    return instance({
        url: '/admin/category/list',
        method: 'POST',
        data
    })
}
export const addCategory = (data) => {
    return instance({
        url: '/admin/category/add',
        method: 'POST',
        data
    })
}
export const deleteCategory = (id) => {
    return instance({
        url: '/admin/category/delete',
        method: 'POST',
        data: {id}
    })
}
// 获取分类 select 数据
export const getCategorySelectList = () => {
    return instance({
        url: '/admin/category/select/list',
        method: 'POST',
    })
}